fix: align nginx/certbot config with sav.com DNS — cover api + orchestrator subdomains, fix Hetzner deploy failures#157
Merged
Conversation
…s, quantum-integrity trap Agent-Logs-Url: https://github.com/ruffy80/ZeusAI/sessions/b5f0e4cb-c0a9-4d8a-b10a-f135fe3e9621 Co-authored-by: ruffy80 <29306714+ruffy80@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ruffy80/ZeusAI/sessions/b5f0e4cb-c0a9-4d8a-b10a-f135fe3e9621 Co-authored-by: ruffy80 <29306714+ruffy80@users.noreply.github.com>
…(api, orchestrator) Agent-Logs-Url: https://github.com/ruffy80/ZeusAI/sessions/002535d1-6c3e-4193-a478-b3554007a59f Co-authored-by: ruffy80 <29306714+ruffy80@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
ruffy80
April 13, 2026 21:01
View session
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three independent bugs caused repeated Hetzner SSH deploy failures and incomplete SSL coverage across all DNS-registered subdomains (
@,www,api,orchestrator,*→204.168.230.142; SSL/DDoS off at registrar, so Hetzner handles everything).Deploy pipeline failures (
deploy-hetzner.yml,deploy-backend.yml,package.json)npm run lintfrom repo root (/opt/unicorn), which has nolintscript →Missing script: linton every push."lint": "npm --prefix UNICORN_FINAL run lint"to rootpackage.jsonUNICORN_FINALfor lint/test/installnpm installonly ran at repo root, not inUNICORN_FINAL/— app deps could be stale after pull|| (echo ... && false)fired the rollback trap on unavailable endpoints, failing deploys that were otherwise successful. Movedtrap - ERRbefore all post-deploy health checks.Nginx
server_nametruncation (fix-server.sh)fix-server.shcopiednginx-unicorn.conf(which correctly lists all 4 hostnames) then immediately overwroteserver_namewith only 2:Same fix applied to the inline fallback config generated when
nginx-unicorn.confis missing.Certbot covers only 2 of 4 subdomains (
fix-server.sh)With SSL/DDoS off at sav.com, Let's Encrypt is the sole TLS provider. Certbot was only requesting certs for
zeusai.proandwww.zeusai.pro—api.zeusai.proandorchestrator.zeusai.prohad no HTTPS. Now auto-obtains a single cert covering all four with--redirect: